package com.nes.ocr;

import com.benjaminwan.ocrlibrary.OcrResult;
import io.github.mymonstercat.Model;
import io.github.mymonstercat.ocr.InferenceEngine;

public class RapidOcrExample {
    public static void main(String[] args) {
        InferenceEngine instance = InferenceEngine.getInstance(Model.ONNX_PPOCR_V3);
        OcrResult ocrResult = instance.runOcr("cc.png");
//        OcrResult ocrResult = instance.runOcr("D:\\workplace\\picture-handle\\pricture-handle\\img\\frame_1736567007620.png");
        System.out.println(ocrResult.getStrRes());
        // https://github.com/MyMonsterCat/RapidOcr-Java.git
    }
}